package com.diankangwo.factory.dao;

import com.diankangwo.factory.entity.TdAccount;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface TdAccountMapper {

    int deleteByPrimaryKey(Integer id);

    int insert(TdAccount record);

    int insertSelective(TdAccount record);

    TdAccount selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TdAccount record);

    int updateByPrimaryKey(TdAccount record);

    /**
     * 根据条件查询厂家列表
     *
     * @param map
     * @return
     */
    List<TdAccount> queryList(Map<String, Object> map);

    /**
     * 根据条件查询厂家总数
     *
     * @param map
     * @return
     */
    int queryTotal(Map<String, Object> map);


}